import defaulConfig from '@/config'

import Cookies from 'js-cookie'

const adminTokenKey = defaulConfig.admin['token-key']

export function getAdminToken() {
  return Cookies.get(adminTokenKey)
}

export function setAdminToken(token) {
  return Cookies.set(adminTokenKey, token)
}

export function removeAdminToken() {
  return Cookies.remove(adminTokenKey)
}
